Release 10.1A: OpenEdge Development:
Progress 4GL Reference
ENTRY statement
Used on the left-hand side of an assignment to set the
nth element to some value.Syntax
elementAn integer value that corresponds to the position of a character string in a list of values. If the value of
elementdoes not correspond to an entry in the list, Progress raises the ERROR condition. If the value ofelementis the Unknown value (?), ENTRY returns the Unknown value (?). Ifelementis less than or equal to 0, or is larger than the number of elements inlist, ENTRY returns an error.listA list of character strings separated with a character delimiter. The
listcan be a variable of type CHARACTER or LONGCHAR. If the value oflistis the Unknown value (?), ENTRY returns the Unknown value (?).characterA delimiter you define for the list. The default is a comma. This allows functions to operate on non-comma-separated lists. The delimiter must be only a single character. If you specify a string of more than one character, only the first character is used. If you specify a null string (""), a space character is used as the delimiter. If you use an alphabetic character, this delimiter is case sensitive.
expressionA constant, field name, variable name, or expression that results in a character string whose value you want to store in the
Examplenth element in a list. Progress does not pad or truncateexpression.This procedure uses three ENTRY statements:
Note
The ENTRY statement is double-byte enabled. It can insert an entry that contains double-byte characters into a specified list and the
characterdelimiter can be a double-byte character.See also
|
Copyright © 2005 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095 |